<div ng-switch="vm.type">
    <div class="panel" ng-switch-when="org">
        <div class="panel-heading panel-default"><h4>机构管理</h4></div>
        <div class="panel-body">
            <div class="btn-group">
                <button class="btn btn-primary" ui-permission="perm_org_mgr" ui-permission-disable="true">新增</button>
                <button class="btn btn-primary" ui-permission="perm_org_mgr" ui-permission-disable="true">修改</button>
                <button class="btn btn-primary" ui-permission="perm_org_mgr" ui-permission-disable="true">删除</button>
            </div>
        </div>
    </div>
    <div class="panel" ng-switch-when="user">
        <div class="panel-heading panel-default"><h4>用户管理</h4></div>
        <div class="panel-body">
            <div class="btn-group">
                <button class="btn btn-primary" ui-permission="perm_user_add" ui-permission-disable="true">新增</button>
                <button class="btn btn-primary" ui-permission="perm_user_edit" ui-permission-disable="true">修改</button>
                <button class="btn btn-primary" ui-permission="perm_user_del" ui-permission-disable="true">删除</button>
            </div>
        </div>
    </div>
    <div class="panel" ng-switch-when="role">
        <div class="panel-heading panel-default"><h4>角色管理</h4></div>
        <div class="panel-body">
            <div class="btn-group">
                <button class="btn btn-primary" ui-permission="perm_role_add">新增</button>
                <button class="btn btn-primary" ui-permission="perm_role_edit">修改</button>
                <button class="btn btn-primary" ui-permission="perm_role_del">删除</button>
            </div>
        </div>
    </div>
</div>